Multi-task neutral network for feed ranking

ABSTRACT

For a content item with unknown tasks performed by a viewing user on an online system, the online system receives a plurality of content items associated with a viewing user. The online system derives a feature vector for each content item. The online system predicts a likelihood of interacting with each content item using a prediction model associated with a plurality of tasks. The prediction model comprises a plurality of shared layers and a plurality of separate layers. The plurality of shared layers are configured to extract common features that are shared across the plurality of tasks. Each separate layer is configured to predict likelihood of the viewing user performing a task associated with the separate layer based on the common features. The online system scores each content item based on predicted likelihood of each task. The online system ranks the plurality of content items based on the scoring.

BACKGROUND

This disclosure relates generally to feed ranking, and more specifically to ranking feeds based on prediction of interactions between viewing users and the feeds using multi-task neutral networks.

A feed (e.g., Newsfeed) is a constantly updating list of content items (e.g., posts) for presentation to a viewing user in an online system. The content items in the feed may be ranked in an order of how likely a viewing user is to find each story worthwhile. One useful approach for ranking content items in a feed is based on a neural network model that predicts how likely a viewing user will interact with each content item in the feed. A neural network model has multiple layers that are connected with each other. Each layer has multiple interconnected neurons (also referred to as nodes). A prediction process based on the neural network model requires large amounts of computations to compute weight for each neuron and for each connection. This prediction process results in high usage of a processing unit (e.g., central processing unit, or a graphics processing unit). The high usage of a processing unit prevents the neural network from developing a large neural network structure, predicating large amounts of events for each content item, and training a neural network model using a large volume of training data.

SUMMARY

For various tasks (or actions), an online system predicts the likelihood that a user will perform the tasks with a content item. Examples of tasks may include liking a content item, sharing a content item, commenting on a content item, clicking on a content item, sharing a content item with message, installing an application associated with a content item, or following on a content item. The online system derives a feature vector for each content item. Examples of a feature vector may include characteristics of a corresponding content item, characteristics of a poster who posted the corresponding content item, characteristics of the viewing user, and relationships among the corresponding, the poster and the viewing user. The online system predicts a likelihood of interacting with each content item using a prediction model associated with a plurality of tasks. The prediction model comprises a plurality of shared layers and a plurality of separate layers. The plurality of shared layers are configured to extract common features that are shared across the plurality of tasks. Each separate layer is configured to predict likelihood of the viewing user performing a task associated with the separate layer based on the common features. Because each content item is characterized by the shared layers and then the separate tasks, each different type of interaction or task can jointly learn characteristics that tend to generally predict interaction with the content item before predicting an individual task with the separate layer for a task. The online system scores each content item based on predicted likelihood of each task. The online system ranks the plurality of content items based on the scoring. The ranking is used to place the content items in a feed in which the user may perform the tasks on the content item.

In one embodiment, the online system trains the prediction model. For a plurality of content items with known tasks performed by the viewing user, the online system derives a feature vector for each content item. The online system generates a training set based on the derived feature vectors of the plurality of content items. The training set comprises a positive set comprising feature vectors of content items that the viewing user performed the tasks with. The negative set may include content items that the user was presented with but did not perform a given task or did not perform any tasks. The online system trains the plurality of shared layers based on the plurality of training sets. The online system trains each separate layer of the plurality of separate layers based on one of the plurality of training sets. Each training set of the plurality of training sets corresponds to each separate layer, and each separate layer corresponds to a task of the plurality of tasks.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is an example of a newsfeed presented to a viewing user, in accordance with an embodiment.

FIG. 2 is a system environment of an online system including a ranking module, in accordance with an embodiment.

FIG. 3 is a block diagram of a ranking module of an online system, in accordance with an embodiment.

FIG. 4A is an example of a first multi-task neural network prediction model applied to a content item for predicting interactions between a viewing user and the content item, in accordance with an embodiment.

FIG. 4B is an example of a second multi-task neural network prediction model applied to a content item for predicting interactions between a viewing user and the content item, in accordance with an embodiment.

FIG. 4C is an example of a third multi-task neural network prediction model applied to a content item for predicting interactions between a viewing user and the content item, in accordance with an embodiment.

FIG. 5 is a flowchart illustrating a process for training a multi-task neural network prediction model, in accordance with an embodiment.

FIG. 6 is a flowchart illustrating a process for ranking content items in a newsfeed based on a multi-task neural network prediction model, in accordance with an embodiment.

The figures depict various embodiments of the present invention for purposes of illustration only. One skilled in the art will readily recognize from the following discussion that alternative embodiments of the structures and methods illustrated herein may be employed without departing from the principles of the invention described herein.

DETAILED DESCRIPTION An Example of A Newsfeed In An Online System

FIG. 1 is an example of a newsfeed 100 presented to a viewing user 105, in accordance with an embodiment. In the embodiment of FIG. 1, a viewing user 105 may be a user of an online system. A newsfeed 100 presented to the viewing user 105 includes three content items 110-130. Examples of content items may include a post, a story, a photo (e.g., 110), a status update (e.g., 120), an activity (e.g., 130), a video, a link, a like from people, a page or a group that a viewing user follows on an online system. In various embodiments, a newsfeed 100 may include any number of content items (e.g., hundreds). Each content item shown in FIG. 1 indicates three actions that the viewing user 105 may perform. For example, a region 115 in the content item 110 includes three options that are “like,” “comment,” and “share.” The viewing user 105 may or may not select any of the three options. If the viewing user 105 selects “like” in the story 110, the number of “likes” will increase by one. The total number of “likes” will become 61. The three content items 110-130 may be ranked based on a prediction that how likely the viewing user 105 will interact with each content item. For example, the content item 110 ranks first indicating the viewing user 105 is most likely to perform any action (e.g., like, comment, or share) on the content item 110. The prediction for feed ranking may be based on a multi-task neural network model, as further described below.

Overview Of System Environment

FIG. 2 is a system environment 200 of an online system 240 including a ranking module 260, in accordance with an embodiment. The system environment 200 shown by FIG. 2 comprises one or more client devices 210, a network 220, one or more external systems 230, and the online system 240. In alternative configurations, different and/or additional components may be included in the system environment 200. The embodiments described herein can be adapted to online systems that are not social networking systems.

The client devices 210 are one or more computing devices capable of receiving user input as well as transmitting and/or receiving data via the network 220. In one embodiment, a client device 210 is a conventional computer system, such as a desktop or laptop computer. Alternatively, a client device 210 may be a device having computer functionality, such as a personal digital assistant (PDA), a mobile telephone, a smartphone or another suitable device. A client device 210 is configured to communicate via the network 220. In one embodiment, a client device 210 executes an application allowing a user of the client device 210 to interact with the online system 240. For example, a client device 110 executes a browser application to enable interaction between the client device 210 and the online system 240 via the network 220. In another embodiment, a client device 210 interacts with the online system 240 through an application programming interface (API) running on a native operating system of the client device 210, such as IOS® or ANDROID™.

The client devices 210 are configured to communicate via the network 220, which may comprise any combination of local area and/or wide area networks, using both wired and/or wireless communication systems. In one embodiment, the network 220 uses standard communications technologies and/or protocols. For example, the network 220 includes communication links using technologies such as Ethernet, 802.11, worldwide interoperability for microwave access (WiMAX), 3G, 4G, code division multiple access (CDMA), digital subscriber line (DSL), etc. Examples of networking protocols used for communicating via the network 220 include multiprotocol label switching (MPLS), transmission control protocol/Internet protocol (TCP/IP), hypertext transport protocol (HTTP), simple mail transfer protocol (SMTP), and file transfer protocol (FTP). Data exchanged over the network 120 may be represented using any suitable format, such as hypertext markup language (HTML) or extensible markup language (XML). In some embodiments, all or some of the communication links of the network 120 may be encrypted using any suitable technique or techniques.

One or more external systems 230 may be coupled to the network 220 for communicating with the online system 240. In one embodiment, an external system 230 is an application provider communicating information describing applications for execution by a client device 210 or communicating data to client devices 210 for use by an application executing on the client device. In other embodiments, an external system 230 provides content or other information for presentation via a client device 210. An external system 230 may also communicate information to the online system 240, such as advertisements, content, or information about an application provided by the external system 230.

The online system 240 allows its users to post content to the online system 240 for presentation to other users of the online system 240, allowing the users interact with each other. Examples of content include stories, photos, videos, and invitations. Additionally, the online system 240 typically generates content items describing actions performed by users and identified by the online system 240. For example, a content item is generated when a user of an online system 240 checks into a location, shares content posted by another user, or performs any other suitable interaction. The online system 240 presents content items describing an action performed by a user to an additional user (e.g., the viewing user 105) connected to the user via a multi-task neural network model that predicts how likely the additional user will interact with the presented content items.

An Example of An Online System

The online system 240 shown in FIG. 1 includes a user profile store 242, a content store 243, an action logger 245, an action log 250, an edge store 255, a ranking module 260, a newsfeed manager 265, and a web server 270. In other embodiments, the online system 240 may include additional, fewer, or different components for various applications. Conventional components such as network interfaces, security functions, load balancers, failover servers, management and network operations consoles, and the like are not shown so as to not obscure the details of the system architecture.

Each user of the online system 240 is associated with a user profile, which is stored in the user profile store 242. A user profile includes declarative information about the user that was explicitly shared by the user and may also include profile information inferred by the online system 240. In one embodiment, a user profile includes multiple data fields, each describing one or more attributes of the corresponding user of the online system 240. Examples of information stored in a user profile include biographic, demographic, and other types of descriptive information, such as work experience, educational history, gender, hobbies or preferences, location and the like. A user profile may also store other information provided by the user, for example, images or videos. In certain embodiments, images of users may be tagged with identification information of users of the online system 240 displayed in an image. A user profile in the user profile store 242 may also maintain references to actions by the corresponding user performed on content items in the content store 243 and stored in the action log 250.

While user profiles in the user profile store 242 are frequently associated with individuals, allowing individuals to interact with each other via the online system 240, user profiles may also be stored for entities such as businesses or organizations. This allows an entity to establish a presence on the online system 240 for connecting and exchanging content with other online system users. The entity may post information about itself, about its products or provide other information to users of the online system 240 using a brand page associated with the entity's user profile. Other users of the online system 240 may connect to the brand page to receive information posted to the brand page or to receive information from the brand page. A user profile associated with the brand page may include information about the entity itself, providing users with background or informational data about the entity.

The content store 243 stores objects that each represent various types of content. Examples of content represented by an object include a page post, a status update, a photograph, a video, a link, a shared content item, a gaming application achievement, a check-in event at a local business, a brand page, or any other type of content. Online system users may create objects stored by the content store 243, such as status updates, photos tagged by users to be associated with other objects in the online system 240, events, groups or applications. In some embodiments, objects are received from third-party applications or third-party applications separate from the online system 240. In one embodiment, objects in the content store 243 represent single pieces of content, or content “items.” Hence, users of the online system 240 are encouraged to communicate with each other by posting text and content items of various types of media through various communication channels. This increases the amount of interaction of users with each other and increases the frequency with which users interact within the online system 240.

The action logger 245 receives communications about user actions internal to and/or external to the online system 240, populating the action log 250 with information about user actions. Examples of actions include adding a connection to another user, sending a message to another user, uploading an image, reading a message from another user, viewing content associated with another user, attending an event posted by another user, among others. In addition, a number of actions may involve an object and one or more particular users, so these actions are associated with those users as well and stored in the action log 250.

The action log 250 may be used by the online system 240 to track user actions on the online system 240, as well as actions on external systems 230 that communicate information to the online system 240. Users may interact with various objects on the online system 240, and information describing these interactions are stored in the action log 250. Examples of interactions with objects include: commenting on posts, sharing links, and checking-in to physical locations via a mobile device, accessing content items, and any other interactions. Additional examples of interactions with objects on the online system 240 that are included in the action log 250 include: commenting on a photo album, communicating with a user, establishing a connection with an object, joining an event to a calendar, joining a group, creating an event, authorizing an application, using an application, expressing a preference for an object (“liking” the object) and engaging in a transaction. Additionally, the action log 250 may record a user's interactions with advertisements on the online system 240 as well as with other applications operating on the online system 240. In some embodiments, data from the action log 250 is used to infer interests or preferences of a user, augmenting the interests included in the user's user profile and allowing a more complete understanding of user preferences.

The action log 250 may also store user actions taken on an external system 230, such as an external website, and communicated to the online system 240. For example, an e-commerce website that primarily sells sporting equipment at bargain prices may recognize a user of the online system 240 through a social plug-in enabling the e-commerce website to identify the user of the online system 240. Because users of the online system 240 are uniquely identifiable, e-commerce websites, such as this sporting equipment retailer, may communicate information about a user's actions outside of the online system 240 to the online system 240 for association with the user. Hence, the action log 250 may record information about actions users perform on the external system 230, including webpage viewing histories, advertisements that were engaged, purchases made, and other patterns from shopping and buying.

In one embodiment, the edge store 255 stores information describing connections between users and other objects on the online system 240 as edges. Some edges may be defined by users, allowing users to specify their relationships with other users. For example, users may generate edges with other users that parallel the users' real-life relationships, such as friends, co-workers, partners, and so forth. Other edges are generated when users interact with objects in the online system 240, such as expressing interest in a page on the online system 240, sharing a link with other users of the online system 240, and commenting on posts made by other users of the online system 240. Users and objects within the online system 240 can represented as nodes in a social graph that are connected by edges stored in the edge store 255.

In one embodiment, an edge may include various features each representing characteristics of interactions between users, interactions between users and object, or interactions between objects. For example, features included in an edge describe rate of interaction between two users, how recently two users have interacted with each other, the rate or amount of information retrieved by one user about an object, or the number and types of comments posted by a user about an object. The features may also represent information describing a particular object or user. For example, a feature may represent the level of interest that a user has in a particular topic, the rate at which the user logs into the online system 240, or information describing demographic information about a user. Each feature may be associated with a source object or user, a target object or user, and a feature value. A feature may be specified as an expression based on values describing the source object or user, the target object or user, or interactions between the source object or user and target object or user; hence, an edge may be represented as one or more feature expressions.

The edge store 255 also stores information about edges, such as affinity scores for objects, interests, and other users. Affinity scores, or “affinities,” may be computed by the online system 240 over time to approximate a user's affinity for an object, interest, and other users in the online system 240 based on the actions performed by the user. A user's affinity may be computed by the online system 240 over time to approximate a user's affinity for an object, interest, and other users in the online system 240 based on the actions performed by the user. Computation of affinity is further described in U.S. patent application Ser. No. 12/978,265, filed on Dec. 23, 2010, U.S. patent application Ser. No. 13/690,254, filed on Nov. 30, 2012, U.S. patent application Ser. No. 13/689,969, filed on Nov. 30, 2012, and U.S. patent application Ser. No. 13/690,088, filed on Nov. 30, 2012, each of which is hereby incorporated by reference in its entirety. Multiple interactions between a user and a specific object may be stored as a single edge in the edge store 255, in one embodiment. Alternatively, each interaction between a user and a specific object is stored as a separate edge. In some embodiments, connections between users may be stored in the user profile store 242, or the user profile store 242 may access the edge store 255 to determine connections between users.

The ranking module 260 ranks content items presented to a viewing user of the online system 240 based on a multi-task neutral network prediction model that predicts how likely the viewing user will interact with each presented content item. The multi-task neutral network prediction model predicts interactions between the viewing user and content items presented by one or more posters based on two types of layers. The two types of layers include shared layers and separate layers. The shared layers extract common features that are shared across tasks by sharing layers among the prediction of the various tasks. The separate layers predict a likelihood of the viewing user performing a specific task associated with the presented content items. A task describes an interaction between the viewing user with the presented content items. Examples of a task associated with a content item may include liking the content item, sharing the content item, commenting on the content item, clicking on content item, sharing the content item with message, installing an application associated with the content item, or following on the content item. An example of the ranking module 260 is further described in FIG. 3, and examples of the multi-task neutral network prediction model are further described in FIGS. 4A-4C.

The newsfeed manager 265 may generate content for presentation to a user based on information in the action log 250 and in the edge store 255 or may select candidate stories included in content store 243. One or more of the candidate stories are selected and presented to a user by the newsfeed manager 265.

For example, the newsfeed manager 265 receives a request to present one or more stories to an online system user. The newsfeed manager 265 accesses one or more of the user profile store 242, the content store 243, the action log 250, and the edge store 255 to retrieve information about the identified user. For example, stories or other data associated with users connected to the identified user are retrieved. The retrieved stories or other data is analyzed by the newsfeed manager 265 to identify content likely to be relevant to the identified user. For example, stories associated with users not connected to the identified user or stories associated with users for which the identified user has less than a threshold affinity are discarded as candidate stories. Based on various criteria, the newsfeed manager 265 selects one or more of the candidate stories for presentation to the identified user.

In various embodiments, the newsfeed manager 265 presents stories to a user through a newsfeed, which includes a plurality of stories selected for presentation to the user. The newsfeed may include a limited number of stories or may include a complete set of candidate stories. The number of stories included in a newsfeed may be determined in part by a user preference included in user profile store 242. The newsfeed manager 265 may also determine the order in which selected stories are presented via the newsfeed. For example, the newsfeed manager 265 determines that a user has a highest affinity for a specific user and increases the number of stories in the newsfeed associated with the specific user or modifies the positions in the newsfeed where stories associated with the specific user are presented.

The newsfeed manager 265 may also account for actions by a user indicating a preference for types of stories and selects stories having the same, or similar, types for inclusion in the newsfeed. Additionally, newsfeed manager 265 may analyze stories received by an online system 240 from various users and obtains information about user preferences or actions from the analyzed stories. This information may be used to refine subsequent selection of stories for newsfeeds presented to various users.

The web server 270 links the online system 240 via the network 220 to the one or more client devices 210, as well as to the one or more external systems 230. The web server 270 serves web pages, as well as other web-related content, such as JAVA®, FLASH®, XML and so forth. The web server 270 may receive and route messages between the online system 240 and the client device 210, for example, instant messages, queued messages (e.g., email), text messages, short message service (SMS) messages, or messages sent using any other suitable messaging technique. A user may send a request to the web server 270 to upload information (e.g., images or videos) that are stored in the content store 243. Additionally, the web server 270 may provide application programming interface (API) functionality to send data directly to native client device operating systems, such as IOS®, ANDROID™, WEBOS® or RIM®.

Feed Ranking Based On A Multi-task Neural Network Prediction Model

FIG. 3 is a block diagram of a ranking module 300 of the online system 240, in accordance with an embodiment. The ranking module 300 shown in FIG. 3 includes a feature extractor 310, a training set module 320, a model module 330 having a shared layer module 330A and a separate layer module 330B, a feed ranking module 340, and a model store 350. In other embodiments, the ranking module 300 is one of embodiments of the ranking module 260. In some embodiments, the ranking module 300 may include additional, fewer, or different components for various applications. For example, the ranking module 300 may include an interface. The interface may facilitate communications among components of the ranking module 300, and/or components of the online system 240.

The feature extractor 310 generates feature vectors for each content item. A feature vector associated with a content item describes characteristics of the content item, characteristics of a poster who posts the content item, characteristics of a viewing user whom the content item is presented to, and relationships among the characteristics of the content item, the poster, and the viewing user. Examples of characteristics of the content item may include textual content, topics associated with the content item (e.g., derived from the textual content), posted time, a posted location, an activity (e.g., attending an event, making a purchase, and following on one or more additional users), interactions between the content item and additional user (e.g., an additional user likes the content item). Examples of characteristics of the poster may include the poster's user profile, and the poster's location. Examples of characteristics of the viewing user may include the viewing user's user profile, and the viewing user's current location. Examples of relationships may include prior interactions between the content item (e.g., characteristics of the content item) and the viewing user, affinities between the poster and/or poster's friends and the viewing user, a time period when the content item is to be presented to the viewing user, and a recurring frequency of the content item that was presented to the viewing user.

The training set module 320 generates a positive set and a negative set for training a model using feature vectors extracted by the feature extractor 310 for each content item. The positive set includes feature vectors of content items for which the content item did in fact have one or more specific interactions (e.g., liking the content item, commenting on the content item, sharing the content item, etc.) with the viewing user. The negative set includes feature vectors of content items for which the content item did not have one or more specific interactions with the viewing user. For example, assume that multiple content items are presented to a viewing user and the viewing user comments on one of the multiple content items. The feature extractor 310 derives feature vectors of the multiple content items. The training set module 320 generates a positive set using the feature vectors of the content item that the viewing user comments on, and a negative set using feature vectors of other remaining content items. Thus, the negative set may include those content items that were presented to a user, but for which the user did not perform an interaction.

The model module 330 trains a multi-task neutral network prediction model using the training set from the training set module 320. The training process is referred to a multi-task learning. The prediction model describes a relationship between the viewing user and the content item, and outputs an indication of whether the viewing user will perform one or more specific interactions with the content item. The prediction model includes a shared layer module 330A and a separate layer module 330B. The shared layer module 330 may include multiple lower layers that extract common feature representations across all the tasks. Examples of functions that are performed by the shared layer module 330A may include linear and non-linear transforms, aggregation, regularizations (e.g., L₁-norm regularization, L₂-norm regularization, low-rank-based regularization, mean-based regularization, dropout, etc.), or shared parameter process (e.g., Gaussian process). The separate layer module 330B may include multiple top layers that use task-specific neurons to realize separate predictions. In some embodiments, each top layer is associated with a specific task. The separate layer module 330B may generate a score indicating a likelihood that how likely the viewing user may a specific task associated with the content item.

In some embodiments, during the multi-task learning, for a specific task, the model module 330 trains shared layers and a separate layer associated with the specific task included in the prediction model, using the training set by weighting the various features in each feature vectors, such that features that are more relevant to one or more specific tasks performed by the viewing user tend to have higher weight than features that are less relevant to the one or more specific tasks. For example, assume that a first feature indicates a poster associated with a posted content item is one of best friends of the viewing user, and that a second feature indicates a location where the poster posted the content item, and that the first feature is more predictive than the second feature. In this case, the prediction model may assign a higher weight to the first feature than the second feature, indicating that the first feature is more predictive of the specific tasks than the second feature based on the comparative frequency that these factors affect the likelihood of this interaction. For a next specific task, the model module 330 selects a corresponding training set to train shared layers and a separate layer associated with the next specific task. The prediction model is updated accordingly. The trained prediction model is stored in the model store 350.

In some embodiments, the model module 330 trains a prediction model based on one or more algorithms. Examples of algorithms may include gradient boosted decision trees (GBDT), SVM (support vector machine), neural networks, logistic regression, naive Bayes, memory-based learning, random forests, decision trees, bagged trees, etc.

The feed ranking module 340 ranks the content items to be presented based in part on the prediction model generated by the model module 330. The prediction model generates, for each content item, a likelihood score indicating how likely the viewing user will perform one or more specific tasks associated with a corresponding content item. For example, for each content item, the feature extractor 310 derives feature vectors for each content item. The feed ranking module 340 also retrieves the prediction model previously generated by the model module 330. The feed ranking module 340 applies the feature vector to the prediction model and scores the content items to predict how likely that the viewing user will perform one or more specific tasks. The feed ranking module 340 ranks the content items based on the scores. For example, the feed ranking module 340 ranks the content item with highest score on the top. The highest score of the content item indicates the viewing user is mostly likely to perform one or more specific tasks with the content item.

FIG. 4A is an example of a first multi-task neural network prediction model 400A applied to a content item for predicting one or more specific tasks between a viewing user and the content item, in accordance with an embodiment. The content item 105 will be presented to the viewing user 105. As shown in FIG. 4A, the prediction model 400A includes shared layers 420 and three separate layers 430. Each separate layer 430 is associated with a specific task (e.g., tasks A1-A3). Examples of tasks include liking a content item, sharing a content item, or commenting on a content item. The prediction model 400A is trained by training sets associated with each task in FIG. 4A. Alternatively (not shown in FIG. 4A), the prediction model 400A includes one or more additional separate layers associated with other suitable tasks.

A feature vector 410 associated with the content item 110 is generated. The feature vector 410 incudes features associated with characteristics of the poster Lucy Hall (e.g., information included in Lucy Hall's user profile, Lucy Hall's current location), features associated with characteristics of the content item 110, features associated with characteristics of the viewing user (e.g., information included in the viewing user's user profile and the viewing user's location), and features associated with relationships among the poser, the viewing user and the content item 110. Examples of characteristics of the content item 110 may include a type of the content item 110 (e.g., a photo), a location (e.g., Baker restaurant) that the poster posted the content item 110, interactions between the content item 110 and additional users (e.g., the number of “likes,” the number of “comments”, and the number of “shares”). Examples of relationships may include prior interactions between the content item 110 (e.g., characteristics of the content item 110) and the viewing user, affinities between the poster and/or poster's friends and the viewing user, a time period when the content item 110 is to be presented to the viewing user, and a recurring frequency of the content item 110 that was presented to the viewing user. Each task prediction 440, 450, 460 is performed by shared layers 420 and a corresponding separate layer 430. For each task prediction, the feature vector 410 is an input to the shared layers 410. The shared layers 410 generate common features across all the tasks A1-A3. The common features outputted from the shared layers 410 are inputs to a separate layer (e.g., 430A, 430B, or 430C) associated with a task. The separate layer outputs a likelihood score indicating how likely the viewing user will perform a corresponding task associated with the content item 110.

FIG. 4B is an example of a second multi-task neural network prediction model 400B applied to a content item for predicting one or more specific tasks between a viewing user and the content item, in accordance with an embodiment. The second multiple-task neutral network prediction model 400B has shared layers 420 and three separate layers 430 including a separate layer 430D associated with the task A*. The task A* can be the task A1, the task A2, or both. The prediction model 400B is trained by training sets associated with each task in FIG. 4B. For the task A* prediction 470, the separate layer 430D associated with the task A* outputs a likelihood score indicating how likely the viewing user will perform the task A*associated with the content item 110.

FIG. 4C is an example of a third multi-task neural network prediction model 400C applied to a content item for predicting one or more specific tasks between a viewing user and the content item, in accordance with an embodiment. The third multiple-task neutral network prediction model 400C has shared layers 420 and three separate layers 430 including a non-trained separate layer associated with task Ax 485. The shared layers 420 included in the prediction model 400C are trained by training sets associated with the tasks A1 and A2. The separate layer 430E included in the prediction model 400C is not trained by training sets associated with the task Ax. The separate layer 430E is learned from an output from the shared layers 420. For example, the shared layers 420 may be a general hyper-feature extractor to extract features of the feature vector 410. The separate layer 430E uses the extracted features from the shared layers 420 to predict a non-trained task. The non-trained task Ax may be other suitable task associated with a content item. If the trained tasks are associated with liking a content item, and commenting on the content item 110, the non-trained task Ax may be associated with sharing a content item with message, installing an application associated with a content item, or following on a content item. For task Ax prediction 480, the separate layer 430E associated with the non-trained task Ax outputs a likelihood score indicating how likely the viewing user will perform the trained task Ax associated with the content item 110.

An Example of Training A Multi-task Neural Network Prediction Model

FIG. 5 is a flowchart illustrating a process 500 for training a multi-task neural network prediction model, in accordance with an embodiment. The process 500 may include different or additional steps than those described in conjunction with FIG. 5 in some embodiments or perform steps in different orders than the order described in conjunction with FIG. 5.

The online system 240 receives 510 a content item with known tasks performed by a viewing user. Examples of content items may include stories, photos, videos, and invitations. Examples of tasks may include liking the content item, sharing the content item, commenting on the content item, clicking on content item, sharing the content item with message, installing an application associated with the content item, or following on the content item.

The online system 240 derives 520 a feature vector corresponding to the content item. For example, the feature extractor 310 of the online system 240 derives a feature vector corresponding to the relationships between the content item and the viewing user, as described above with respect to the feature extractor 310 of FIG. 3.

The online system 240 generates 530 a plurality of training sets based on the derived feature vector. For example, the training set module 320 of the online system 240 generates a positive set and a negative set based on the derived feature vector. Steps 510 to 530 can be repeated 505 for different content items with known interactions performed by the same viewing user or different viewing users to obtain a sufficiently large training set.

The online system 240 trains 540 a plurality of shared layers based on the plurality of training sets. The online system 240 trains 550 a separate layer based on one of the plurality of training sets. Each training set of the plurality of training sets is corresponding to each separate layer, and each separate layer corresponding to a task, as described above with respect to the model module 330 of FIG. 3.

In some embodiments, the online system 240 trains the shared layers and separate layers, separately. For example, after the shared layers are trained jointly with at least some separate layers, if one or more additional non-trained separate layers are added to the current prediction model, the online system 240 trains the additional non-trained separate layers using associated training sets without training the shared layers.

An Example of Feed Ranking Based On A Multi-task Neural Network Prediction Model

FIG. 6 is a flowchart illustrating a process 600 for ranking stories in a newsfeed based on a multi-task neural network prediction model, in accordance with an embodiment. The process 600 may include different or additional steps than those described in conjunction with FIG. 6 in some embodiments or perform steps in different orders than the order described in conjunction with FIG. 6.

The online system 240 receives 610 a plurality of content items associated with a viewing user. The online system 240 derives 620 a feature vector of each received content item. The online system 240 predicts 630 likelihood of each content item using a prediction model associated with a plurality of tasks. For example, the online system 240 retrieves the prediction model previously generated by the model module 330. The online system 240 applies each feature vector to the retrieved prediction model and predicts likelihood of each task. The online system 240 scores 640 each content item based on predicted likelihood of each task. The online system 240 ranks 650 the plurality of content items based on the scoring, as described above with respect to the feed ranking module 340 of FIG. 3.

General

The foregoing description of the embodiments of the invention has been presented for the purpose of illustration; it is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Persons skilled in the relevant art can appreciate that many modifications and variations are possible in light of the above disclosure.

Some portions of this description describe the embodiments of the invention in terms of algorithms and symbolic representations of operations on information. These algorithmic descriptions and representations are commonly used by those skilled in the data processing arts to convey the substance of their work effectively to others skilled in the art. These operations, while described functionally, computationally, or logically, are understood to be implemented by computer programs or equivalent electrical circuits, microcode, or the like. Furthermore, it has also proven convenient at times, to refer to these arrangements of operations as modules, without loss of generality. The described operations and their associated modules may be embodied in software, firmware, hardware, or any combinations thereof.

Any of the steps, operations, or processes described herein may be performed or implemented with one or more hardware or software modules, alone or in combination with other devices. In one embodiment, a software module is implemented with a computer program product comprising a computer-readable medium containing computer program code, which can be executed by a computer processor for performing any or all of the steps, operations, or processes described.

Embodiments of the invention may also relate to an apparatus for performing the operations herein. This apparatus may be specially constructed for the required purposes, and/or it may comprise a general-purpose computing device selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a nontransitory, tangible computer readable storage medium, or any type of media suitable for storing electronic instructions, which may be coupled to a computer system bus. Furthermore, any computing systems referred to in the specification may include a single processor or may be architectures employing multiple processor designs for increased computing capability.

Embodiments of the invention may also relate to a product that is produced by a computing process described herein. Such a product may comprise information resulting from a computing process, where the information is stored on a nontransitory, tangible computer readable storage medium and may include any embodiment of a computer program product or other data combination described herein.

Finally, the language used in the specification has been principally selected for readability and instructional purposes, and it may not have been selected to delineate or circumscribe the inventive subject matter. It is therefore intended that the scope of the invention be limited not by this detailed description, but rather by any claims that issue on an application based hereon. Accordingly, the disclosure of the embodiments of the invention is intended to be illustrative, but not limiting, of the scope of the invention, which is set forth in the following claims. 

What is claimed is:
 1. A computer-implemented method performed by an online system, the method comprising: receiving a plurality of content items associated with a viewing user; deriving a feature vector for each content item; predicting a likelihood of interacting with each content item using a prediction model associated with a plurality of tasks, the prediction model comprising a plurality of shared layers and a plurality of separate layers, the plurality of shared layers configured to extract common features that are shared across the plurality of tasks, each separate layer configured to predict likelihood of the viewing user performing a task associated with the separate layer based on the common features; scoring each content item based on predicted likelihood of each task; and ranking the plurality of content items based on the scoring.
 2. The computer-implemented method of claim 1, wherein the feature vector comprises characteristics of a corresponding content item, characteristics of a poster who posted the corresponding content item, characteristics of the viewing user, and relationships among the corresponding, the poster and the viewing user.
 3. The computer-implemented method of claim 2, wherein the relationships comprises: prior interactions between the corresponding content item and the viewing user, affinities between the poster and/or poster's friends and the viewing user, a time period when the corresponding content item is to be presented to the viewing user, and a recurring frequency of the corresponding content item that was presented to the viewing user.
 4. The computer-implemented method of claim 1, wherein the content item comprises stories, photos, videos, and invitations.
 5. The computer-implemented method of claim 1, wherein the prediction model is not trained by training data for at least one of the plurality of tasks.
 6. The computer-implemented method of claim 5, wherein the prediction model comprises the plurality of shared layers trained by a first group of the plurality of tasks and at least one of the plurality of separate layers not trained by the first group of the plurality of tasks.
 7. The computer-implemented method of claim 1, further comprising training the prediction model, the training comprising: receiving a plurality of content items with known tasks performed by the viewing user; deriving a feature vector for each content item; generating a training set based on the derived feature vectors of the plurality of content items, the training set comprising a positive set comprising feature vectors of content items that the viewing user performed known tasks with; training the plurality of shared layers based on the plurality of training sets; and training each separate layer of the plurality of separate layers based on one of the plurality of training sets, each training set of the plurality of training sets corresponding to each separate layer, each separate layer corresponding to a task of the plurality of tasks.
 8. The computer-implemented method of claim 7, wherein the plurality of shared layers and the plurality of separate layers are trained jointly.
 9. The computer-implemented method of claim 7, wherein the plurality of shared layers and the plurality of separate layers are trained individually.
 10. The computer-implemented method of claim 7, wherein the training is based on one or more algorithms.
 11. A non-transitory computer-readable medium comprising computer program instructions that when executed by a computer processor of an online system causes the processor to perform steps comprising: receiving a plurality of content items associated with a viewing user; deriving a feature vector for each content item; predicting a likelihood of interacting with each content item using a prediction model associated with a plurality of tasks, the prediction model comprising a plurality of shared layers and a plurality of separate layers, the plurality of shared layers configured to extract common features that are shared across the plurality of tasks, each separate layer configured to predict likelihood of the viewing user performing a task associated with the separate layer based on the common features; scoring each content item based on predicted likelihood of each task; and ranking the plurality of content items based on the scoring.
 12. The non-transitory computer-readable medium of claim 11, wherein the feature vector comprises characteristics of a corresponding content item, characteristics of a poster who posted the corresponding content item, characteristics of the viewing user, and relationships among the corresponding, the poster and the viewing user.
 13. The non-transitory computer-readable medium of claim 12, wherein the relationships comprises: prior interactions between the corresponding content item and the viewing user, affinities between the poster and/or poster's friends and the viewing user, a time period when the corresponding content item is to be presented to the viewing user, and a recurring frequency of the corresponding content item that was presented to the viewing user.
 14. The non-transitory computer-readable medium of claim 11, wherein the content item comprises stories, photos, videos, and invitations.
 15. The non-transitory computer-readable medium of claim 11, wherein the prediction model is not trained by training data for at least one of the plurality of tasks.
 16. The non-transitory computer-readable medium of claim 15, wherein the prediction model comprises the plurality of shared layers trained by a first group of the plurality of tasks and at least one of the plurality of separate layers not trained by the first group of the plurality of tasks.
 17. The non-transitory computer-readable medium of claim 11, further comprising training the prediction model, the training comprising: receiving a plurality of content items with known tasks performed by the viewing user; deriving a feature vector for each content item; generating a training set based on the derived feature vectors of the plurality of content items, the training set comprising a positive set comprising feature vectors of content items that the viewing user performed known tasks with; training the plurality of shared layers based on the plurality of training sets; and training each separate layer of the plurality of separate layers based on one of the plurality of training sets, each training set of the plurality of training sets corresponding to each separate layer, each separate layer corresponding to a task of the plurality of tasks.
 18. The non-transitory computer-readable medium of claim 17, wherein the plurality of shared layers and the plurality of separate layers are trained jointly.
 19. The non-transitory computer-readable medium of claim 17, wherein the plurality of shared layers and the plurality of separate layers are trained individually.
 20. The non-transitory computer-readable medium claim 17, wherein the training is based on one or more algorithms. 